﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Windows.Forms;

namespace MapEditor
{
    class Util
    {
        public static long SmallestPowerOfTwo(int n)
        {
            long power = 1;
            while (power < n)
                power *= 2;
            if (power != n)
                power *= 2;
            return power;
        }
    }
}
